// ==========  用户相关 ============//
import constant from '@/utils/constant'
import request from '@/utils/request'

/**
 * 获取用户token
 */
export function getToken(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.getToken,
		method: 'POST',
		data
	})
}

/**
 * 退出登陆
 */
export function logout(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.logout,
		method: 'POST',
		data
	})
}

/**
 * 修改密码
 */
export function changeStaffPwd(data) {
	uni.showLoading({
		title:'加载中'
	})
	return request({
		url: constant.changeStaffPwd,
		method: 'POST',
		data
	})
}